<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="common.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>鑫远航国际货运系统</title>
	<script src="${ctx}/static/js/jquery/jquery.min.js"></script>
	<script src="${ctx}/static/js/common.js"></script>
	<link rel="stylesheet" href="${ctx}/static/css/module.css" type="text/css"/>  
</head>
	
	
	<body>
	<div class="login" id="login" >
	<table class="loginoutside">
		<tr>
			<td width="40%" class="loginline" align="right">
				<img src="${ctx}/static/images/logo.bmp" alt="logo"/><br/>
				
			</td>
			<td>
			<form action="${ctx }/user/login" method="post">
				<table class="login_right">
									<tbody>
					<tr>
						<td class="name" width="90">
							帐号：
						</td>
						<td colspan="2">
							<input id="Username" name="name" type="text" size="25"/>
	                        <script type="text/javascript">
							document.getElementById('Username').focus();
							</script>
						</td>
					</tr>
					<tr>
						<td  class="name">
							密码：
						</td>
						<td colspan="2">
							<input name="password" type="password" size="25"/>
						</td>
					</tr>
					<tr>
						<td>
						</td>
						<td colspan="2" class="loginerror">${requestScope.errorMsg }
												</td>
					</tr>
					</tbody>
					<tfoot>
						<tr>
							<td>
							</td>
							<td colspan="2" class="btn">
								<input type="submit" value="提交" />
							</td>
						</tr>
					</tfoot>
								</table>
				</form>
			</td>
		</tr>
	</table>
	</div>
	<div style="text-align:center; position:absolute; left:45%; bottom:50px;">
		Powered by <a target="_blank" href="http://www.uudev.com">深圳鑫远航</a>! &copy; 2011
	</div>
	<!--/right-->
	<script language="javascript">
		var sHeight=document.documentElement.clientHeight;//浏览器高度
		var sWidth=document.documentElement.clientWidth;//浏览器宽度
		var login=document.getElementById("login").offsetHeight;//login容器高度
		document.getElementById("login").style.top=sHeight/2 - login/2 - 30 + "px"
	
		function captcha(obj,url){
			obj.src = url+ '&nowtime=' + new Date().getTime();    //后面传递一个随机参数，否则在IE7和火狐下，不刷新图片   
		}
	</script>
	</body>
</html>